package packet;

import java.io.Serializable;
import java.util.LinkedList;

import sql.WriteEatData;

import DataClass.EatMedData;
import TCP.Communication.CommunicationServer;
import TCP.Communication.LinkerClient;
import TCP.Communication.LinkerServer;
import TCP.Packet.sys.Packet_i;


public class SendEatData implements Packet_i,Serializable{
//	public LinkedList<EatMedData> listEat = new LinkedList<EatMedData>();
//	
//	public void setListEat(LinkedList<EatMedData> listEat) {
//		this.listEat = listEat;
//	}
	
	public int id;
	public String OnOff;
	public String EatTime;
	public Boolean sun,mon,tue,wed,thu,fri,sat;
	public String soundF1,picF1;

	@Override
	public void runOnServer(LinkerServer ls) {
		CommunicationServer.cs.sendTo指定名稱(ls, this, new String[] { "sql" });
	}

	@Override
	public void runOnClient(LinkerClient lc) {
		WriteEatData w=new WriteEatData();
		w.WriteData(id, OnOff,EatTime,sun,mon,tue,wed,thu,fri,sat,
				soundF1,picF1);
	}
	
	
}
